StartSimulationEngine  "SimState/basicsim.xml"

length1 = 2.0

length2 = 0.6

velocity = 10.0

AddNewEntity    ent1  	/Position:0  1.0  0

	AddBoxShape  
		/Dimensions:0.4  {length1}  0.4  	/Mass:100

AddNewEntity    ent2  	/Position:0.4  0  0
	/ParentEntity:ent1

	AddCapsuleShape  
		/Radius:0.1  	/Height:{length2}  	/Mass:0.1


AddJoint    joint1
	/ChildEntity:ent2
	/JointPosition:0  0  0
	/XAngular:velocity  500000  100000  0  1000000

FlushScript  

ent2.JointVelocity(velocity, 0, 0)

